import axios from "./index"
// 添加地址
export function addAddress(data:any){
    return axios.post("/address/add",data)
}
// 查询默认地址
export function mrAddress(userid:string){
    return axios.post("/address/defaultAddress",{userid})
}
export function addressList(userid:string){
    return axios.get("/address/list",{params:{userid}})
}
// 删除地址
export function deleAddress(addressid:string){
    return axios.post("/address/delete",{addressid})
}
// 更新
export function updateAddress(data:any){
    return axios.post("/address/update",data)
}